import request from '@/utils/request'
import header from './header'
import store from '@/store'
export function CreateHscode(data){
    data=Object.assign(data,header)
    return request({
      url:'/declaration/hs_code/create',
      method:'post',
      data
    })
}

export function ModifyHscode(data){
  data=Object.assign(data,header)
  return request({
    url:'/declaration/hs_code/modify',
    method:'put',
    data
  })
}


export function QueryHscode(data){
  data=Object.assign(data,header)
  return request({
    url:'/declaration/hs_code/query',
    method:'post',
    data
  })
}

export function QueryGoods(data){
    data=Object.assign(data,header)
    return request({
      url:'/declaration/eb_register_goods/query',
      method:'post',
      data
    })
}

export function CheckDeclaration(data){
  data=Object.assign(data,header)
  return request({
    url:'/declaration/eb_register_goods/check',
    method:'put',
    data
  })
}

export function QueryOrder(data){
  data=Object.assign(data,header)
  return request({
    url:'/declaration/eb_order/query',
    method:'post',
    data
  })
}

export function ModifyOrder(data){
  data=Object.assign(data,header)
  return request({
    url:'/declaration/eb_order/modify',
    method:'put',
    data
  })
}

export function UploadApi(data){
    return request({
        url:'/declaration/eb_order/import',
        method:'post',
        headers:{
            'Content-Type':"multipart/form-data",
        },
        data
    })
}

